]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: avoid spinlock include unless debugging is on
authorSage Weil <sage@newdream.net>
Thu, 8 Apr 2010 14:43:12 +0000 (07:43 -0700)
committerSage Weil <sage@newdream.net>
Thu, 8 Apr 2010 14:43:12 +0000 (07:43 -0700)
src/include/buffer.h

index 7ff6d85749ef209b69c1ce083e95b5cd59c44cd4..f6faa129a68a31955110908a74c54d11a0a3ef0b 100644 (file)
@@ -58,14 +58,13 @@ using std::string;
 #include "crc32c.h"
 #include "assert.h"
 
-#include "common/Spinlock.h"
-
 extern atomic_t buffer_total_alloc;
-extern Spinlock buffer_lock;
 
 //#define BUFFER_DEBUG
 
 #ifdef BUFFER_DEBUG
+#include "common/Spinlock.h"
+extern Spinlock buffer_lock;
 # define bdout { buffer_lock.lock(); cout
 # define bendl std::endl; buffer_lock.unlock(); }
 #else