Bug 745383 - Use database path for hashtables. r=mfinkle, a=mfinkle
authorWes Johnston <wjohnston@mozilla.com>
Fri, 13 Apr 2012 18:38:11 -0700
changeset 91653 1dde63bcf17e5e6a1cd5737b03ea71da63d94ee3
parent 91652 dcb1ba052c3504651e7a912582d322d853674b6f
child 91654 b43e6857d7eea2af09793adf872076732809abc1
push id22465
push usermak77@bonardo.net
push dateSat, 14 Apr 2012 11:58:29 +0000
treeherdermozilla-central@6880c195054f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, mfinkle
bugs745383
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 745383 - Use database path for hashtables. r=mfinkle, a=mfinkle
mobile/android/base/db/GeckoProvider.java.in
--- a/mobile/android/base/db/GeckoProvider.java.in
+++ b/mobile/android/base/db/GeckoProvider.java.in
@@ -155,19 +155,20 @@ public abstract class GeckoProvider exte
     private SQLiteBridge getDatabaseForProfile(String profile) {
         if (TextUtils.isEmpty(profile)) {
             Log.d(mLogTag, "No profile provided, using default");
             profile = BrowserContract.DEFAULT_PROFILE;
         }
 
         SQLiteBridge db = null;
         synchronized (this) {
-          db = mDatabasePerProfile.get(profile);
+          String dbPath = getDatabasePathForProfile(profile);
+          db = mDatabasePerProfile.get(dbPath);
           if (db == null) {
-              db = getDB(mContext, getDatabasePathForProfile(profile));
+              db = getDB(mContext, dbPath);
           }
         }
 
         Log.d(mLogTag, "Successfully created database helper for profile: " + profile);
         return db;
     }
 
     private SQLiteBridge getDatabaseForPath(String profilePath) {