Changeset 24291 for trunk/Nebulous-Server/lib/Nebulous/Server.pm
- Timestamp:
- Jun 1, 2009, 3:53:59 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r24276 r24291 740 740 } 741 741 742 # check to see if the user.mode xattr exists 743 742 744 $log->debug("leaving"); 743 745 … … 982 984 { 983 985 type => SCALAR, 986 callbacks => { 987 'xattr is in user. namespace' 988 => sub { ($_[0]) =~ qr/^user\./ }, 989 }, 984 990 }, 985 991 { … … 1065 1071 { 1066 1072 type => SCALAR, 1073 callbacks => { 1074 'xattr is in user. namespace' 1075 => sub { ($_[0]) =~ qr/^user\./ }, 1076 }, 1067 1077 }, 1068 1078 ); … … 1161 1171 { 1162 1172 type => SCALAR, 1173 callbacks => { 1174 'xattr is in user. namespace' 1175 => sub { ($_[0]) =~ qr/^user\./ }, 1176 }, 1163 1177 }, 1164 1178 ); … … 1180 1194 $query->finish; 1181 1195 1196 # no rows affected means the xattr did not exist 1197 if ($rows == 0) { 1198 $log->logdie( "xattr $key:$name does not exist" ); 1199 } 1200 1182 1201 # if we affected more then one row something very bad has happened. 1183 unless ($rows ==1) {1202 if ($rows > 1) { 1184 1203 $log->logdie( "affected row count is $rows instead of 1" ); 1185 1204 }
Note:
See TracChangeset
for help on using the changeset viewer.
