diff options
author | Roald J. van Loon <roaldvanloon@gmail.com> | 2013-08-31 10:30:14 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-31 10:30:30 -0700 |
commit | e48d6cb4023fb3735e9c4288f5d5c7bac44eadde (patch) | |
tree | 63a924973f7407e0a7e71c35b49b58f94ed88fca | |
parent | a5d815d2338de6ad465692ff87685b8b5e45ca13 (diff) | |
download | ceph-e48d6cb4023fb3735e9c4288f5d5c7bac44eadde.tar.gz |
mon: fix uninitialized Op field
- Uninitialized field in MonitorLevelDB::Op causes random build errors.
Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>
-rw-r--r-- | src/mon/MonitorDBStore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mon/MonitorDBStore.h b/src/mon/MonitorDBStore.h index 276620f7516..ccf6390acd4 100644 --- a/src/mon/MonitorDBStore.h +++ b/src/mon/MonitorDBStore.h @@ -41,7 +41,8 @@ class MonitorDBStore string key, endkey; bufferlist bl; - Op() { } + Op() + : type(0) { } Op(int t, string p, string k) : type(t), prefix(p), key(k) { } Op(int t, const string& p, string k, bufferlist& b) |