]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fix set_alloc_hint op cause KeyValueStore crash problem
authorHaomai Wang <haomaiwang@gmail.com>
Tue, 20 May 2014 06:32:18 +0000 (14:32 +0800)
committerSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 03:50:05 +0000 (20:50 -0700)
commitfdbab46852e74d405b5c747da98564a5866ec8a7
treefa368cd0881818808b58c1ee20812cfd8d36fbea
parent922e24e658f09a8a772309f18a8d54c560fad653
Fix set_alloc_hint op cause KeyValueStore crash problem

Now KeyValueStore doesn't support set_alloc_hit op, the implementation of
_do_transaction need to consider decoding the arguments. Otherwise, the
arguments will be regarded as the next op.

Fix the same problem for MemStore.

Fix #8381

Reported-by: Xinxin Shu <xinxin.shu5040@gmail.com>
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
(cherry picked from commit c08adbc98ff5f380ecd215f8bd9cf3cab214913c)
src/os/KeyValueStore.cc
src/os/MemStore.cc