]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cohort_lru: use correct new/delete operator pair
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 19 Dec 2015 23:32:42 +0000 (18:32 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:05 +0000 (12:07 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/common/cohort_lru.h

index cdabb1e5bef81b779e2ef5ab324d0f368b3f9426..2f83b4230556feb874bbe2bce6edc9343c0b4c39 100644 (file)
@@ -284,7 +284,7 @@ namespace cohort {
 
        ~Partition() {
          if (csz)
-           delete[] cache;
+           ::operator delete(cache);
        }
       };
 
@@ -323,7 +323,7 @@ namespace cohort {
          Partition& p = part[ix];
          if (csz) {
            p.csz = csz;
-           p.cache = (T**) calloc(csz, sizeof(T*));
+           p.cache = (T**) ::operator new(csz * sizeof(T*));
          }
          locks.push_back(&p.lock);
        }