dbwrap: start adding CTDB related profiling counters
[ambi/samba.git] / source3 / lib / dbwrap / dbwrap_ctdb.c
index 2d858c9910520a6d2ef6ccf6599a7153d7a9b1be..cbd8c1895217bda2d843db6e0fe3b8e98717eff3 100644 (file)
@@ -26,6 +26,7 @@
 #include "dbwrap/dbwrap_ctdb.h"
 #include "dbwrap/dbwrap_rbt.h"
 #include "lib/param/param.h"
+#include "smbprofile.h"
 
 #ifdef CLUSTER_SUPPORT
 
@@ -1126,6 +1127,8 @@ again:
                          migrate_attempts, duration_msecs));
        }
 
+       DO_PROFILE_ADD(ctdb_migrate_attempts, migrate_attempts);
+
        GetTimeOfDay(&crec->lock_time);
 
        memcpy(&crec->header, ctdb_data.dptr, sizeof(crec->header));