From 5258c34fb2c52e53f2064ee714fae174b1e02ab2 Mon Sep 17 00:00:00 2001 From: sageweil Date: Thu, 13 Sep 2007 03:57:42 +0000 Subject: [PATCH] debug_after tweak, untested git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1835 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/ceph/newsyn.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/ceph/newsyn.cc b/trunk/ceph/newsyn.cc index b57fd90aeb249..0ad3064560056 100644 --- a/trunk/ceph/newsyn.cc +++ b/trunk/ceph/newsyn.cc @@ -148,9 +148,10 @@ public: class C_Debug : public Context { public: void finish(int) { - int size = &g_conf.debug_after - &g_conf.debug; + int size = (long)&g_conf.debug_after - (long)&g_conf.debug; memcpy((char*)&g_conf.debug, (char*)&g_debug_after_conf.debug, size); cout << "debug_after flipping debug settings" << std::endl; + //g_conf.debug_ms = 1; } }; -- 2.39.5