EnvironmentConfig.addDataDir no longer has any effect?

I've been using various berkeleydb versions for almost a decade and a half with the same configuration in the DatabaseEnvironment setup:
        EnvironmentConfig config = new EnvironmentConfig();
        File dataDirectory = new File(baseDirectory, "data");
        dataDirectory.mkdirs();
        config.addDataDir(dataDirectory);
        File logDirectory = new File(baseDirectory, "log");
        logDirectory.mkdirs();
        config.setLogDirectory(logDirectory);
        oldLogDirectory = new File(baseDirectory, "oldlog");
        oldLogDirectory.mkdirs();
        File tmpDirectory = new File(baseDirectory, "tmp");
        tmpDirectory.mkdirs();
        config.setTemporaryDirectory(tmpDirectory.getPath());
Suddenly, after a recent switch to version 6.1 of berkeleydb, the addDataDir call seems to be having no effect. Instead, all the database files get created in the baseDirectory. Oddly the log files are still going in the log subdirectory, old log files in oldlog, etc. Just data files seem affected. Weirder, if I use an existing database, it finds them, but new databases I create *since* the change go in the wrong directory. This seems simple as can be, so I don't see how I can suddenly be screwing this up after 14 years. When I examine the result of getDataDirs upon creating the tables it has the single directory I set it to. But it is clearly ignoring it for NEWLY created tables. So why is this suddenly happening?

KDZ is correct!  setDataDir is deprecated.  Replacement calls are addDataDir and setCreateDir.  The java version of the doc is not as clear as it could be and we will correct that.   A better description is found in the C doc.
thanks
mike

Similar Messages

  • I recently updated my macbook, i don't know if that has any effect to my recent problem, but when i try to download and save .mp3 files from the internet, like i have done in the past, it downloads but not as an mp3 file, its "blank"

    i recently updated my macbook, i don't know if that has any effect to my recent problem, but when i try to download and save .mp3 files from the internet, like i have done in the past, it downloads but not as an mp3 file, its "blank" and when i try to open it, i can't? I NEED HELP !

    Here is the download page

  • My iphone 4s no longer has any sound expect with headphones.

    My iphone 4s no longer has any sound expect with headphones. I have cleaned the head jack and dock connector, restarted, and reset the phone. This occurred after updating to ISO 6. What else can be done? Thanks!

    If you are near one, make a reservation at the Genius Bar at the Apple Store.

  • ITunes no longer has any volume.

    Last night when I was hooking my iPhone up to my computer I heard a loud pop. I couldn't figure out what it was at the time but as of this morning iTunes is silent when I try to play anything. If I open my files via VLC they play fine and the system volume is ok. However, in ITunes nothing ever comes out of the speakers. Additionally, I noticed that the volume slider at the top of iTunes is gray (though at 100%).
    I tried deleting the plist files for iTunes and I even reinstalled iTunes. Nothing has solved this issue. Does anyone know what might have corrupted iniTunes or how I can fix this?
    T

    It started working

  • Outlook no longer has any Contacts

    After a Microsoft Upgrade this week (week of 9/9/13), when you attempt to view your contacts and you look at the folder sidebar, there is nothing and no contacts are shown. If you close the sidebar and then reopen it, you can see all your folders briefly and then they all disappear with a blue area where the folders should be. Looks like one of those Microsoft/Apple spats again. I uninstalled iCloud and reinstalled it to no avail. Will just have to wait for apple to update their iCloud program to fix the problem. Calendar works fine to and from all my Apple devices so it is not an iCloud issue but a Microsoft one.

    It started working

  • The "back" icon no longer has any color when it is available; it used to turn blue.

    The "back" arrow, "home" and "reset" used to turn blue when I could use them. The "back" arrow always was blue whenever I could go back; now there is no color change at all. They are all white and gray. How can I put color back into them?

    Thanks for your reply. That is what I feared. I never signed up for iCloud service because I was going to get a different phone around the time iCloud came about... oh well, it is what it is. At least I removed all Contact info on it at the time because I wanted to maximaze the space I needed for music!
    Thanks again.
    AGC

  • Itunes no longer has my music in my music library. How do I transfer ALL my music (not just the purchased from Itunes) from my Ipod Touch back to my Itunes library on my computer.

    ITunes no longer has any of my music in my music library. How do I transfer all of my music ( not just the purchased music from ITunes) from my IPod Touch to Itunes library on my computer for syncing to other devices.

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • "When I open a link in a new tab, switch to it immediately" option has no effect on command+clicking on links.

    Whether this option is ticked or un-ticked, command+clicking a link will open the link in a new tab and immediately switch to it.
    Is it possible to change this behavior so that command+clicking on a link will open the link in a new tab in the background?

    Did you try to close and restart Firefox after toggling this setting?
    Does holding down the Shift key in addition (i.e. Command + Shift and a left-click) has any effect?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Does pricing type have any effect in Delivery to billing copy controls

    Hi,
    Does pricing have any effect on delivery to billing copy controls, for example pricing type, since there is no pricing related data in delivery.
    iF the billing is maintained as delivery related billing, will pricing type has any effect.
    Thanks
    Keshi

    Yaa, It is a good question.
    If the billing is maintained as delivery related, its all about the qty of the material to be billed after delivery. (setting maintained at VOV7).
    Even though the delivery doesnt have any pricing relevant data, the pricing type has an important effect.
    Of course it is maintained at delivery to billing copy control, but u have to see where u are finding the pricing type field. It is in the copy control item level for TAN. So it is not relevant to the delivery transaction any more, it is relevant to the item category only.
    So the conclusion here is if the item category is relevant for billing transaction, after delivering the item, how the pricing is carried out during the billing (whether the same pricing or diff. pricing). This is explained by the pricing type field.
    Hope i answers ur query. if u have any further queries, please post.
    Do reward points if it is useful.

  • TS3789 I have similar problem, my apple tv which has always worked properly with my Samsung tv will no longer play any audio after the latest 5.1 upgrade. Very frustrating as it was working perfectly before. I am starting to not trust apple upgrades until

    I have similar problem, my apple tv which has always worked properly with my Samsung tv will no longer play any audio after the latest 5.1 upgrade. Very frustrating as it was working perfectly before. I am starting to not trust apple upgrades until proven for example ios6 on iPhone with that stupid map app instead of google maps.
    I just want to buy and hear my iTunes music and videos on my apple tv, could before cant now. Thank you apple. Time to pack up the apple tv and start torrenting without the ios-bs.
    Disheartened apple fan.

    Welcome to the  discussion forums.
    Try going to synching in the sources menu on your tv and selecting 'change itunes library', when it gives you the passcode check itunes to see if the tv is showing up as a new device, if so try entering the pass code. It may be that your tv is seeing itunes as a different library because of a recent upgrade.

  • I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    Hey socestlavie,
    Thanks for the question. I understand you are experiencing issues with iTunes for Windows. The following resource may help to resolve your issue:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Thanks,
    Matt M.

  • TS4036 my device has been crushed beyond repair, and I don't think I ever did the backup thing. does this mean I can no longer see any of my stuffs??

    my device has been crushed beyond repair, and I don't think I ever did the backup thing. does this mean I can no longer see any of my stuffs??

    thats really 4kd up

  • HT1535 has anyone had issues with syncing music? i can no longer sync any of my music that was already on my itunes to my phone for some reason???

    has anyone had issues with syncing music? i can no longer sync any of my music that was already on my itunes to my phone for some reason???

    Since this first message, the "Other" space has increased exponentially.  The first time, after the "restore", it increased to over 9 GB.  Later, I tried a minor restore again, and now it's over 10 GB.  I've seen someone suggest that text messages are to blame.  If my text messages are suddenly taking up 4 GB of space, I think we've got bigger problems.

  • I was being able to watch facebook videos from my ipad, and since i updated my IOS to 7.1.1,i dont know if it has to do with that but now i can no longer see any facebook videos

    I was being able to watch facebook videos from my ipad, and since i updated my IOS to 7.1.1,i dont know if it has to do with that but now i can no longer see any facebook videos

    If you look at the preferences for Flashblock (access from the extensions window of the add-ons manager) and choose Whitelist, you can add a site to that window, and that site will not be blocked by Flashblock at all. You will not even see the Flashblock icon.

  • I just upgraded Flash Pro CC from 13.0.1.80 to 14.0.0.110. I can no longer run any .swf's The target is Player i13 or older, my computer has 16.

    I just upgraded Flash Pro CC from 13.0.1.80 to 14.0.0.110. I can no longer run any .swf's The target is Player i13 or older, my computer has 16.

    you mean you have a problem with the stand-alone flash player?  or you're having a problem with flash pro?

Maybe you are looking for

  • Hard Drive Crash/Multiple Questions re: iPod

    iBook G4 Mac OS X (10.4.6) My iBook crashed last week and I've been trying to put the pieces back together after re-installing all the software. I have a Maxtor External Hard Drive, however something is messed up and so most photos in iPhoto are now

  • Hi there

    in my nokia N97 ihave a problem with my ovi store when i want to use it had amassage that unable to connect to surver how can i solve it ? Than you

  • Computer Ejects Disc Before Installation

    I recently tried to install Leopard from the family pack installation disc. The disc runs and mounts on my desktop when I put it in. It even lets me open it up and brings up the window letting me restart the computer. However, when the computer resta

  • Where are my iPhone videos ?

    I recently imported all my iPhone  photo library using iPhoto however, I cant seem to find any of my videos no more. Is it Apple thad dumb to delete all my videos and store just the pictures ? I looked everywhere on my iPhone and I can't find the vid

  • SL visual fireworks followed by freeze

    I have just acquired a late 2006 24" iMac with 1GB of RAM. It came with Leopard installed, disks for Leopard and Snow Leopard, and iLife '09. The hard disk was full, as in, zero K free. I threw away a lot of stuff, ordered 3GB of RAM from OWC, and in