Hi all,
i begin a test nginx and mogileFS, i use nginx for perlbal, mogstored, and i 
looking at nginx logs i see some error logs like that:  

2008/04/05 21:16:00 [error] 11629#0: *27 MKCOL can create a collection only, 
client: 10.0.0.3, server: mogilestorage, request: "MKCOL /dev1/test-write 
HTTP/1.0"   

and i looking in mogileFS source code i see this, 
$dev->create_directory("/dev$devid/test-write");

and nginx is say "no end with slash, ok this is not a directory " and return 
error,

if this line changed with 
$dev->create_directory("/dev$devid/test-write/"); everythink is fine...

PS: sory for my bad english...
PS :patch is attached and i dont know maybe this is wrong, sory about that 
(sending patch to email list)

-- 
Saygılar && İyi çalışmalar
Timu EREN (a.k.a selam)
Index: lib/MogileFS/Worker/Monitor.pm
===================================================================
--- lib/MogileFS/Worker/Monitor.pm	(revision 1149)
+++ lib/MogileFS/Worker/Monitor.pm	(working copy)
@@ -165,7 +165,7 @@
     # first, create the test-write directory.  this will return
     # immediately after the first time, as the 'create_directory'
     # function caches what it's already created.
-    $dev->create_directory("/dev$devid/test-write");
+    $dev->create_directory("/dev$devid/test-write/");
 
     my $num = int(rand 10000);  # this was "$$-$now" before, but we don't yet have a cleaner in mogstored for these files
     my $puturl = "http://$hostip:$port/dev$devid/test-write/test-write-$num";;

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to