mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
Merge pull request #1840 from yuyuyu101/wip-8381
Fix set_alloc_hint op cause KeyValueStore crash problem Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
commit
7ac05dc0a8
@ -1448,7 +1448,13 @@ unsigned KeyValueStore::_do_transaction(Transaction& transaction,
|
||||
break;
|
||||
|
||||
case Transaction::OP_SETALLOCHINT:
|
||||
// TODO: can kvstore make use of the hint?
|
||||
{
|
||||
// TODO: can kvstore make use of the hint?
|
||||
coll_t cid(i.get_cid());
|
||||
ghobject_t oid = i.get_oid();
|
||||
uint64_t expected_object_size = i.get_length();
|
||||
uint64_t expected_write_size = i.get_length();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -950,7 +950,12 @@ void MemStore::_do_transaction(Transaction& t)
|
||||
break;
|
||||
|
||||
case Transaction::OP_SETALLOCHINT:
|
||||
// nop
|
||||
{
|
||||
coll_t cid(i.get_cid());
|
||||
ghobject_t oid = i.get_oid();
|
||||
uint64_t expected_object_size = i.get_length();
|
||||
uint64_t expected_write_size = i.get_length();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user