s3: VFS: default: Remove fallback if we don't have HAVE_PWRITE set. Samba doesn't...
[samba.git] / ctdb / server / ctdb_statistics.c
index cb245d6080600760b70fc8c8c7b2a3269f6c6634..4cf8f9e2726a1aa51a3634ae0057212c1cd72c1c 100644 (file)
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "includes.h"
-#include <string.h>
-#include "../include/ctdb_private.h"
+#include "replace.h"
+#include "system/network.h"
+#include "system/time.h"
+
+#include <talloc.h>
+#include <tevent.h>
+
+#include "lib/util/debug.h"
+#include "lib/util/samba_util.h"
+
+#include "ctdb_private.h"
+
+#include "common/logging.h"
 
 static void ctdb_statistics_update(struct tevent_context *ev,
                                   struct tevent_timer *te,
@@ -58,13 +68,14 @@ int ctdb_statistics_init(struct ctdb_context *ctdb)
 
 
 int32_t ctdb_control_get_stat_history(struct ctdb_context *ctdb, 
-                                     struct ctdb_req_control *c,
+                                     struct ctdb_req_control_old *c,
                                      TDB_DATA *outdata)
 {
        int len;
-       struct ctdb_statistics_wire *s;
+       struct ctdb_statistics_list_old *s;
 
-       len = offsetof(struct ctdb_statistics_wire, stats) + MAX_STAT_HISTORY*sizeof(struct ctdb_statistics);
+       len = offsetof(struct ctdb_statistics_list_old, stats) +
+               MAX_STAT_HISTORY*sizeof(struct ctdb_statistics);
 
        s = talloc_size(outdata, len);
        if (s == NULL) {