]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fixing a dangling pointer 38899/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 14 Jan 2021 08:02:19 +0000 (10:02 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 14 Jan 2021 08:02:19 +0000 (10:02 +0200)
commit00ddd87e28041e74ce02da2c00270844ff90bdd2
tree6a4d821df52253ac59ba9e55844c27faed3c01e7
parentcde444426c7255b0ab532dedf6ae7a8e2eef0878
os/bluestore: fixing a dangling pointer

... and silencing compiler warnings:

Building CXX object src/os/CMakeFiles/os.dir/bluestore/BlueStore.cc.o
../src/os/bluestore/BlueStore.cc:8603:25: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
        const char *c = it->key().c_str();
                        ^~~~~~~~~
../src/os/bluestore/BlueStore.cc:8623:25: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
        const char* c = it->key().c_str();
                        ^~~~~~~~~
(reverting a minor part of ifed01)

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/os/bluestore/BlueStore.cc