about summary refs log tree commit homepage
path: root/http_dav.c
diff options
context:
space:
mode:
Diffstat (limited to 'http_dav.c')
-rw-r--r--http_dav.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/http_dav.c b/http_dav.c
index 94e7773..fcf8897 100644
--- a/http_dav.c
+++ b/http_dav.c
@@ -24,6 +24,8 @@ void mog_http_delete(struct mog_fd *mfd, char *buf)
         assert(path[0] == '/' && "bad path");
         if (path[1] == '\0') goto forbidden;
 
+        TRACE(CMOGSTORED_HTTP_REQ_START(mfd->fd, "DELETE", path));
+
         rc = mog_unlink(http->svc, path);
         if (rc == 0) {
                 mog_http_resp(mfd, "204 No Content", true);
@@ -55,9 +57,16 @@ void mog_http_mkcol(struct mog_fd *mfd, char *buf)
                 mog_http_resp(mfd, "405 Method Not Allowed", true);
                 return;
         }
+
         path = mog_http_path(http, buf);
 
         /*
+         * This can be useful for making sure the skip_mkcol server setting
+         * is enabled in the tracker/database to avoid latency
+         */
+        TRACE(CMOGSTORED_HTTP_REQ_START(mfd->fd, "MKCOL", path));
+
+        /*
          * Do not do anything on MKCOL and rely on PUT to create
          * directories.  This stops MogileFS trackers from trying
          * (expensive) MKCOL requests.  Perlbal/mogstored also does