Is there any _sane_ way to use BDB concurrently?

I have what I think is a straightforward application. I have a single writer which modifies a database, and a number of readers which are CGI programs. The processes are unrelated and not managed by any particular parent process.
I use CDB, because it sounds like what I want. But I often find that the whole environment is hung with locks being held by processes which have long since exited. I must recover the environment to proceed.
What's really making me pull my hair out is that I can't find any combination of flags to db_env_open() which provides a satisfactory solution. REGISTER and RECOVER can't be used with CDB, so that's right out. But what's maddening is I can't find any way to use LOCK with REGISTER and RECOVER, either. I always get EINVAL returned.
I think what I want is DB_INIT_LOCK | DB_INIT_MPOOL | DB_REGISTER | DB_RECOVER but that doesn't seem to work :-(
If I do it without DB_RECOVER, I always get DB_RUNRECOVERY, even with a virgin database. No matter how many times I run db4.4_recover, it still returns DB_RUNRECOVERY.
What's a programmer supposed to do?

Some test programs:
my $e = new BerkeleyDB::Env
-Home => '/tmp/jwb/'
, -Flags => DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK | DB_REGISTER
or die "BDB::Env hoohaw: $!, $BerkeleyDB::Error";
BDB::Env hoohaw: , DB_RUNRECOVERY: Fatal error, run database recovery at ./test.pl line 6.
my $e = new BerkeleyDB::Env
-Home => '/tmp/jwb/'
, -Flags => DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK | DB_REGISTER | DB_RECOVER
or die "BDB::Env hoohaw: $!, $BerkeleyDB::Error";
BDB::Env hoohaw: , Invalid argument at ./test.pl line 6.
Sleepycat Software: Berkeley DB 4.4.20: (February 24, 2006)

Similar Messages

  • Is there any (easy) way to use Pages to edit documents imported via iFiles?

    Is there any (easy) way to use Pages to edit documents imported via iFiles?

    That is a question better answered by the developer:
    http://www.ifilesapp.com/
    Peter

  • Is there any possible way to use my EOS Rebel XT for EOS Utility?

    Okay, so i want to use EOS Utility on my Digital Rebel XT camera. In case you are wondering EOS Utility is used to take a picture with the camera by just clicking a button on the computer. Its used to make it so that any pictures i take arent shaky. Anyway, there is no link for the camera and when i go to the cameras homepage, and go to softwares, There is no download link for EOS Utility for my camera. Is there any way I can still use it on my Digital Rebel XT Camera? Let me know thanks

    FantasticMrFox wrote:
    Okay, so i want to use EOS Utility on my Digital Rebel XT camera. In case you are wondering EOS Utility is used to take a picture with the camera by just clicking a button on the computer. Its used to make it so that any pictures i take arent shaky. Anyway, there is no link for the camera and when i go to the cameras homepage, and go to softwares, There is no download link for EOS Utility for my camera. Is there any way I can still use it on my Digital Rebel XT Camera? Let me know thanks Other responses have gone off to explain some other solutions before answering your question. The simple answer is "NO". You cannot use your camera tethered to a computer, controlling it via EOS Utilities software (or Lightroom, for that matter). In order to do that, the camera must have the Live View feature. Your XT (aka 350D, from 2005) doesn't have Live View. There was a version of LV on the EOS 20Da (2005), a more complete implementation of it on the 40D (2007), and among the Rebel-series models the XSi and XS were the first to get LV (aka 450D & 1000D, both introduced in 2008). Other responses are on some right tracks, though. If your primary purpose is to help prevent camera shake, there are several other things you can do, which you may or may not be aware of... - Set a faster shutter speed. Of course, to do so may require a larger lens aperture and/or a higher ISO.  - Get and use a lens with IS (Image Stabilization).- Use flash, it freezes both subject movement and camera shake, approx. like 1/720 shutter speed would, with most flashes.- Use a tripod along with:- - a remote release (RS-60E3 wired or RC-6 wireless)- - or just use the camera's self-timer delay - - and/or use mirror lockup (Custom Function 7) Tripod quality has a great deal of effect. Some are so flimsy as to be hardly worth using. For example, the most stable tripods do not use a center column or, if it has one, the tripod is tall enough to be used without raising the center column much or at all. Materials make a differentce, too... for example carbon fiber is much better absorbing fine vibration than metal. There are a number of other factors that go into making a tripod stable. Do some additional research, if interested. Note: RC-6 wireless release uses infra red and the sensor for it is on the front of the camera. This is certainly useful for self portraits, but may be problematic using this remote for other types of photos. In addition to the Canon RS-60E3 wired remote release, there are other brand remote switches including some that have additional features such as delay timers, interval timers (time lapse), etc.  AFAIK, Canon does not make a timer/controller with E3 connectivity (like the TC-80N3, which will not connect with your camera) Note: The XT's self-timer delay is 10 seconds only. However, when used in conjunction with the mirror lockup feature, it's automatically shortened to a 2 second delay. Note: While IS lenses can make possible handholding lenses at shutter speeds 2, 3 or somtimes even 4 stops slower than you'd normally be able to use... the effectiveness of IS varies a bit from lens to lens and good handholding technique are still needed to get the best out of it. Some IS lenses require IS to be manually turned off when locked down on a tripod. The IS in those lenses can go into sort of a feedback loop where it's actually causing, rather than preventing movement. Don't worry too much about it, though... if it happens you'll see it in the viewfinder and then can turn off the IS. (No harm done to either the camera or the lens.) Hope this helps! ***********
    Alan Myers
    San Jose, Calif., USA
    "Walk softly and carry a big lens."
    GEAR: 5DII, 7D(x2), 50D(x3), some other cameras, various lenses & accessories
    FLICKR & EXPOSUREMANAGER 
           

  • TS3090 Is there any good way for using a network account locally on the server?

    We have a bunch of macs at home. I want to be able to login to a laptop and have my account (home dir) in sync with de desktop account in a noninvasive way. 
    For achieving this I thought  promoting one imac to be a network profile server would be a good solution.
    This way we can work on any machine and sync portable home directories (phd) with our laptops.
    The server should also be usable as a workstation.
    One problem is: is possible to login on the server (locally) and work in a network account?
    I know it is possible, but this article describes issues.
    Also i am concerned about perfomance because files wil be mounted over afp rather than being on the harddisk. (one workaround would be to have a phd on the desktop, this would however not be possible on the server itsself (unless you have two copies of the home directory there))
    Does anyone have any experience with a simular situation or perhaps some other helpfull insights.

    Sorry, you must have edited your message. When I saw it, only the title showed .
    Embedded is what you want. You can change the windows apperance (e.g. hide the scroll bars) by changing the VI properties.
    Uncheck "request control" in the web publishing wizard, and it will be read only.
    Works fine here in LabVIEW 7.1. I don't remember if 6.1 had any limitations.
    LabVIEW Champion . Do more with less code and in less time .

  • Is there any other way to use a Batch Action Save as Without Using Override "Save As"

    The problem im having is, Ive made a Action which uses the save option several times though the action. When i try to run a batch action it just overrides the last file. When I check the Override Button the action does not work becuase i used save in my action in ealier steps. The action works perfect with one picture when doing it manually but it would take forever to do 1500 pictures manually. Any help would be great.
    Im trying to find a way to run the batch file and have it save as a diffrent file name each time.
    Thanks for the Help In Advance

  • My iPhone 4s notified me that I had to manage my storage  so I deleted  apps that used a lot of space I deleted almost all my picture and it still keeps telling me  I don't have enough storage  is there any other way I can make room on my phone ?

    My iPhone 4s notified me that I had to manage my storage  so I deleted  apps that used a lot of space I deleted almost all my picture and it still keeps telling me  I don't have enough storage  is there any other way I can make room on my phone ?  Were it shows how much storage  I have available it still says 9.9 even after all that I have done so I don't know if I need to change my storage plan or what but anything will help I guess

    Check for 'others' in iTunes against your iPhone.
    Restore from a previous backup to reclaim some of it.
    Still want more, Restore in iTunes, setup as New.

  • My iphone has been lost in my house and i need to find a way to track it and its offline. it wont connect to the internet so there isnt a way to use find my iphone. i just want to play a sound on it. is there any way i can get a app that connects my ipod

    my iphone has been lost in my house and i need to find a way to track it and its offline. it wont connect to the internet so there isnt a way to use find my iphone. i just want to play a sound on it. is there any way i can get a app that connects my ipod from a laptop or a different way to find it.

    If your phone is offline, the ONLY way to find it is to look for it the old fashioned way.  Your phone CANNOT be located electronically if it's offline.

  • Can we use Apple tv to present with iPad wirelessly but no internet? if not, is there any other way?

    Can we use Apple tv to present with iPad wirelessly but no internet? if not, is there any other way?  Please tell me what's the best solution if I want to present what's on the iPad screen to TV or projector withtout using internet network or small range of bluetooth. 

    yes

  • I can no longer change my song names like i used to. i use to be able to right click and go to "get info" and then change the song name, artist and album, now i can't is there any other way to change the songs name and info

    When I get songs and put them on my itunes accout on my computer I used to be able to rename them right clicking, going to "get info" and then renaming everything I wanted like song name, album and artwork. I also use to be able to click on the song then click and hold on it and be able to rename it. But all the songs I have gotten after the last update have not been able to be renamed in any of the old ways I use to be able to. Is there any other way to rename songs because I know I can't undo updates and that seems to be whats causing it.
    Thankyou for your time

    You are describing an iTunes problem, not an iPod touch problem. Try posing in the iTunes forum.

  • Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?

    Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?

    No.
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • My iphone 4s' screen is black, but it's still on and charging. I broke my lock screen button so I am unable to turn it off using the home button and lock button. Is there any other way my phone can restart or turn off ? Is my phone broken for sure?

    My iphone 4s' screen is black, but it's still on and charging. I broke my lock screen button so I am unable to turn it off using the home button and lock button. Is there any other way my phone can restart or turn off ? Is my phone broken for sure?

    Kbkohn wrote:
    I am in tears right now because I entered all my 11month old sons milestones into my phone and now I have nothing I'm so upset and am hoping there is a way to get this information back. 
    Most intelligent people would not store such sensitive data on a device that could so easily be lost, stolen, or damaged.  Even if they chose to do so, they would use the device as designed and regularly sync and backup that device as described in the User's Guide.
    Have you done so?  If you have, all of the data is either in iCloud or iTunes on your computer.  Replace the device and restore the new iDevice with the backup of the old one.

  • Is there any possible way of deleting BBM5.0 when one's using OS5.0?

    Is there any possible way of deleting BBM5.0 when one's using OS5.0? I tried to use DM6.0 but BBM is marked as a core component impossible to delete.
    I hate BBM in general because it's always on. I don't want install an older version.
    If anyone can help me, thanks in advance.
    Solved!
    Go to Solution.

    lusilveira wrote:
    Is there any possible way of deleting BBM5.0 when one's using OS5.0? I tried to use DM6.0 but BBM is marked as a core component impossible to delete.
    I hate BBM in general because it's always on. I don't want install an older version.
    If anyone can help me, thanks in advance.
    with some 5.0.X.X OSes, the BBm is a core application and cannot be removed.
    BUT other 5.0.X.X OSes, the BBm has become an addon application and can be removed. (i.e. 5.0.0.436 and on 5.0.0.462)
    if you have the first category OS, I suggest you try and install BBm for example using AppWorld. Maybe by upgrading BBm, it will become an addon.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • IS THERE ANY SIMPLE WAY TO RETURN SPEED PERFORMANCE TO FACTORY SPEED AFTER ABOUT 3 YEARS OF RELATIVELY STANDARD USE?

    Everyone is often so quick to bash all these 'cleaning' utilities but rarely give any solutions.
    There's a lot of critiques and endless lists of what NOT to do to avoid performance problems.
    My Powerbook is 3 years old. It runs like molasses... SLOW.
    I'm not a computer geek, but I'm smart and understand quite a bit more than a newbie.
    Do I need a degree in computer engineering to fix/speed up my mac?
    Yes, I know, the cleaning utilities suck. But is it really true of all of them?
    I'm not totally convinced because there seems to be such a huge market for them.
    Sure, there's a huge market for bottled water too, so maybe they are just useless/marketing crap, but I really want to return to my original speed performance quickly and can't seem to find out if it's possible with a utility.
    I'm not willing to sit down for 3 hours and study line by line b.s. about how to fix it.
    I have no problem if it's not fixable. I've always assumed operating systems outgrow their hardware's capacity to keep up, and sell my old one for a new one, no prob.
    I don't care, really, but again, I'm curious if there is any quick, easy, user-friendly utility or method that I can use to return the speed performance I had as recently as a year ago? (I'd be satisfied with that).
    Anyone willing to bite on that? Anyone willing to not critique, complain, tell me what NOT to do and actually know a solution?
    IS THERE ANY SIMPLE WAY TO RETURN SPEED PERFORMANCE BACK TO (OR CLOSE TO) ORIGINAL FACTORY SPEED AFTER ABOUT 3 YEARS OF RELATIVELY STANDARD USE?
    The only thing I may have done outside of the norm was some video editing, but very little.

    Look for solutions here:
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Hi, I have lost my iphone but i have its backup in itunes, how can i restore my contact/sms using itunes or is there any other way, please help

    Hi, I have lost my iphone but i have its backup in itunes, how can i restore using itunes or is there any other way for this
    please suggest

    You can restore that backup to a replacement iPhone, if that's what you're asking. If you want to extract data from the iPhone backup, you'll need third-party software to do so:
    http://www.iphonebackupextractor.com/

  • Is there any possible way to see all Log-in information I have used one the web-page (not just passwords, but also a logins used)?

    Hi all,
    The problem is:
    I have been using site at different times from different accounts, and I have used autologin thing.
    But when last time I opened the site, for some reason Mozilla automaticly logged in with my very old account.
    For some reason in Security -> Passwords - I see only 1 "Login" detail for this site.
    Is there any possible way to see all Logins (login information) I have used on this site to log-in?
    May be some file folder is recording them?
    Thanks

    If a password is filled then that can only be done if the password is saved in the password manager.<br />
    If only the name is filled then that can be done by form fill.
    *Form History Control: https://addons.mozilla.org/firefox/addon/form-history-control/

Maybe you are looking for