summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_cache_transaction.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 0746692..8edce00 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -1019,7 +1019,10 @@ int HttpCache::Transaction::DoCreateEntryComplete(int result) {
return OK;
}
- if (result != OK) {
+ if (result == OK) {
+ UMA_HISTOGRAM_BOOLEAN("HttpCache.OpenToCreateRace", false);
+ } else {
+ UMA_HISTOGRAM_BOOLEAN("HttpCache.OpenToCreateRace", true);
// We have a race here: Maybe we failed to open the entry and decided to
// create one, but by the time we called create, another transaction already
// created the entry. If we want to eliminate this issue, we need an atomic