Skip to content

Commit

Permalink
os: remove redundant omap_head check logic
Browse files Browse the repository at this point in the history
It will never be reachable.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Jan 4, 2016
1 parent 02f8e92 commit d30ef37
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/os/kstore/KStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3411,10 +3411,6 @@ int KStore::_omap_rmkeys(TransContext *txc,
r = 0;
goto out;
}
if (!o->onode.omap_head) {
o->onode.omap_head = o->onode.nid;
txc->write_onode(o);
}
::decode(num, p);
while (num--) {
string key;
Expand Down

0 comments on commit d30ef37

Please sign in to comment.