Index: trunk/Nebulous-Server/Changes
===================================================================
--- trunk/Nebulous-Server/Changes	(revision 17757)
+++ trunk/Nebulous-Server/Changes	(revision 17761)
@@ -1,3 +1,7 @@
 Revision history for Nebulous
+
+0.12
+    - fix Nebulous::Server::setxattr_object() so that creating a new xattr with
+      the "replace" flag works
 
 0.11 Tue May 20 10:54:50 HST 2008
Index: trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 17757)
+++ trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 17761)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004-2008  Joshua Hoblitt
 #
-# $Id: Server.pm,v 1.73 2008-05-20 01:47:08 jhoblitt Exp $
+# $Id: Server.pm,v 1.74 2008-05-21 19:57:19 jhoblitt Exp $
 
 package Nebulous::Server;
@@ -674,5 +674,7 @@
             }
         } else {
-            unless ($rows == 2) {
+            # replace_object_xattr can effect either 1 or 2 rows.  2 rows in
+            # the case of a replace and 1 if the xattr didn't already exist.
+            unless ($rows == 1 or $rows == 2) {
                 $log->logdie( "affected row count is $rows instead of 2" );
             }
