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 |