in reply to Re: Accessing BDB file fails on linux
in thread Accessing BDB file fails on linux

Actually on both machines the file loads properly and I can see all the keys as well. But on Linux when I try to access value for few keys it returns undef.


  • Comment on Re^2: Accessing BDB file fails on linux

Replies are listed 'Best First'.
Re^3: Accessing BDB file fails on linux
by dsegleau (Initiate) on Feb 22, 2011 at 09:32 UTC
    Are either of the processes writing to the database or are they both just reading the database from the SAN drive?

    I'm not that familiar with the Perl API, but what do you mean when you say "When I try to access value for few keys it returns undef."

    BTW: Although Berkeley DB is endian-neutral in terms of it's internal data structures, it makes no attempt to interpret the data payload. Managing endian-ness changes is the responsibility of the embedding application.

      Its only one program run on both Solaris and Linux. And all it does is reading the database file. I meant on Linux it does not return all the records. Though the count says it has loaded the entire file, I can only access few records from the data structure that is populated from this file.
      Its only one program run on both Solaris and Linux. And all it does is reading the database file.
      
      I meant on Linux it does not return all the records. Though the count says it has loaded the entire file, I can only access few records from the data structure that is populated from this file.