Index: trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 17753)
+++ 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" );
             }
