diff options
author | xie xingguo <xie.xingguo@zte.com.cn> | 2016-02-05 05:07:33 +0100 |
---|---|---|
committer | xie xingguo <xie.xingguo@zte.com.cn> | 2016-02-05 05:07:33 +0100 |
commit | dca8111a98a4f8dc37eb44a004c5c36f76abc18f (patch) | |
tree | 24c8968efd879f1c851b67f65e9eb0b51cce9fbb /src/os/kstore/KStore.cc | |
parent | os/bluestore: assign nid for newly created onode (diff) | |
download | ceph-dca8111a98a4f8dc37eb44a004c5c36f76abc18f.tar.xz ceph-dca8111a98a4f8dc37eb44a004c5c36f76abc18f.zip |
os/kstore: assign nid for newly created onode
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Diffstat (limited to '')
-rw-r--r-- | src/os/kstore/KStore.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/kstore/KStore.cc b/src/os/kstore/KStore.cc index cba793f3ca8..50af01eaabb 100644 --- a/src/os/kstore/KStore.cc +++ b/src/os/kstore/KStore.cc @@ -3595,6 +3595,7 @@ int KStore::_clone_range(TransContext *txc, newo = c->get_onode(new_oid, true); assert(newo); newo->exists = true; + _assign_nid(txc, newo); r = _do_read(oldo, srcoff, length, bl, 0); if (r < 0) |