Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: nss/lib/softoken/sdb.c

Issue 195763027: Update NSS to NSS_3_16_RC0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Use the RTM tag Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nss/lib/softoken/pkcs11u.c ('k') | nss/lib/softoken/softkver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nss/lib/softoken/sdb.c
===================================================================
--- nss/lib/softoken/sdb.c (revision 256695)
+++ nss/lib/softoken/sdb.c (working copy)
@@ -2012,7 +2012,17 @@
/* 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 = sdb_measureAccess(directory);
+ 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.*/
+ if (!env || ((PORT_Strcasecmp(env, "no") != 0) &&
+ (PORT_Strcasecmp(env, "yes") != 0))){
+ accessOps = sdb_measureAccess(directory);
+ }
+ }
/*
* open the cert data base
« no previous file with comments | « nss/lib/softoken/pkcs11u.c ('k') | nss/lib/softoken/softkver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698