dbTalk Databases Forums  

Database on shared memory region fails to open...

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Database on shared memory region fails to open... in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Herman.Ron@gmail.com
 
Posts: n/a

Default Database on shared memory region fails to open... - 03-29-2006 , 03:13 PM






when opening an environment in shared memory region using the
DB_SYSTEM_MEM flag
I get an error Env Open : Invalid Argument...
when looking inside the Berkeley DB Code I get to the line when the
share region ID has to be created on file "os_map.c" line 77 in this
line the is a check if the infop register is set to REGION_CREATE, and
only if it is set, a new ID is aquired using shmget and the initial key
I spesified using the env->set_shm_key function
but this register always fails this check indicating REGION_CREATE
isn't set
could anyone tell which setting to the env openning i got wrong and
caused this falg to be un-set ???

becuase it is not set shmget is never activated and the memory
attachment always fails

thanks in advance

Ron Herman


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.