summaryrefslogtreecommitdiffstats
path: root/src/ceph_mon.cc
diff options
context:
space:
mode:
authorLoic Dachary <loic-201408@dachary.org>2014-09-15 20:21:14 +0200
committerLoic Dachary <loic-201408@dachary.org>2014-09-15 20:21:14 +0200
commitded1b303b586c414801097541752dd0c6eba3ad1 (patch)
tree7e0d237308420b895718cdcba2a22d1f558708eb /src/ceph_mon.cc
parentMerge pull request #2477 from ceph/wip-client-msg-leak (diff)
downloadceph-ded1b303b586c414801097541752dd0c6eba3ad1.tar.xz
ceph-ded1b303b586c414801097541752dd0c6eba3ad1.zip
erasure-code: preload fails if < 0
And not if < -1. Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Diffstat (limited to 'src/ceph_mon.cc')
-rw-r--r--src/ceph_mon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc
index 97d749351fc..3ff033f7f9d 100644
--- a/src/ceph_mon.cc
+++ b/src/ceph_mon.cc
@@ -482,7 +482,7 @@ int main(int argc, const char **argv)
}
common_init_finish(g_ceph_context);
global_init_chdir(g_ceph_context);
- if (preload_erasure_code() < -1)
+ if (preload_erasure_code() < 0)
prefork.exit(1);
}