Skip to content

Commit

Permalink
coordinator assert on rename; debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
jcnelson committed Jan 24, 2016
1 parent 09e8680 commit d75b51c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libsyndicate-ug/inode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,16 @@ int UG_inode_export_xattr_hash( struct fskit_core* fs, uint64_t gateway_id, stru
size_t* xattr_lengths = NULL;

if( gateway_id != SG_manifest_get_coordinator( &inode->manifest ) ) {

SG_error("BUG: %" PRIu64 " != %" PRIu64 "\n", gateway_id, SG_manifest_get_coordinator( &inode->manifest ) );
exit(1);
return -EINVAL;
}

rc = UG_inode_export_xattrs( fs, inode, &xattr_names, &xattr_values, &xattr_lengths );
if( rc != 0 ) {


SG_error("UG_inode_export_xattrs(%" PRIX64 ") rc = %d\n", UG_inode_file_id( inode ), rc );
return rc;
}

Expand Down

0 comments on commit d75b51c

Please sign in to comment.