diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-02-16 23:16:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-02-16 23:38:03 +0000 |
commit | c74c98a551f3912de8b5f3519b49cbad257e9a8e (patch) | |
tree | 53cc90ed8a826dc90aefd50f4041779a65bf4abf /http_put.c | |
parent | f63052147711e2bc650ded2ffea25cd81cc1f168 (diff) | |
download | cmogstored-c74c98a551f3912de8b5f3519b49cbad257e9a8e.tar.gz |
This more closely matches the behavior of Perlbal/mogstored and can lead to better performance. Issuing repeated MKCOL requests can be expensive (even with caching), so remove support for it.
Diffstat (limited to 'http_put.c')
-rw-r--r-- | http_put.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -244,6 +244,9 @@ void mog_http_put(struct mog_http *http, char *buf, size_t buf_len) return; } + if (mog_mkpath_for(http->svc, path) != 0) + goto err; + http->forward = mog_file_open_put(http->svc, path, open_flags); if (http->forward == NULL) goto err; |