]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/xlist: prevent item moves 26086/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 23 Jan 2019 01:04:40 +0000 (17:04 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 25 Jan 2019 05:49:28 +0000 (21:49 -0800)
This would result in undefined behavior.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/include/xlist.h

index 2e18df2e1a7006474e6915592a8f3ceb65f59a8b..733a318a9bd73c2f5ee440b2467310a47be68b08 100644 (file)
@@ -32,7 +32,9 @@ public:
     }
 
     item(const item& other) = delete;
+    item(item&& other) = delete;
     const item& operator= (const item& right) = delete;
+    item& operator= (item&& right) = delete;
 
     xlist* get_list() { return _list; }
     bool is_on_list() const { return _list ? true:false; }