]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/cache/lru_cache.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / rocksdb / cache / lru_cache.cc
index 9874178063796ec846cf792f7a8e0aa4e51b8751..5a4a2729dbc9dda9a28a8c4df3c8394dc4d9acab 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <assert.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string>
 
 #include "util/mutexlock.h"
@@ -386,6 +385,7 @@ Status LRUCacheShard::Insert(const Slice& key, uint32_t hash, void* value,
       LRUHandle* old = table_.Insert(e);
       usage_ += total_charge;
       if (old != nullptr) {
+        s = Status::OkOverwritten();
         assert(old->InCache());
         old->SetInCache(false);
         if (!old->HasRefs()) {