Bug 956082, Avoid call to sdb_measureAccess if NSS_SDB_USE_CACHE is set, r=rrelyea
authorPeter (Stig) Edwards <thatsafunnyname@gmail.com>
Thu, 23 Jan 2014 21:01:59 +0100
changeset 11014 5a67f6beee9a
parent 11013 3c3b381c4865
child 11015 330bbba1c07d
push id285
push userkaie@kuix.de
push date2014-01-23 20:02 +0000
reviewersrrelyea
bugs956082
Bug 956082, Avoid call to sdb_measureAccess if NSS_SDB_USE_CACHE is set, r=rrelyea
lib/softoken/sdb.c
--- a/lib/softoken/sdb.c
+++ b/lib/softoken/sdb.c
@@ -2012,17 +2012,17 @@ s_open(const char *directory, const char
 
     /* how long does it take to test for a non-existant file in our working
      * directory? Allows us to test if we may be on a network file system */
     accessOps = 1;
     {
         char *env;
         env = PR_GetEnv("NSS_SDB_USE_CACHE");
         /* If the environment variable is set to yes or no, sdb_init() will
-         * ignore the value of accessOps, and we can skip the measuring. */
+         * ignore the value of accessOps, and we can skip the measuring.*/
         if (!env || ((PORT_Strcasecmp(env, "no") != 0) &&
                      (PORT_Strcasecmp(env, "yes") != 0))){
            accessOps = sdb_measureAccess(directory);
         }
     }
 
     /*
      * open the cert data base