[PVFS2-CVS] commit by neill in pvfs2-1/src/io/trove/trove-dbpf:
dbpf-keyval-db-cache.c
CVS commit program
cvs at parl.clemson.edu
Wed Feb 11 18:14:47 EST 2004
Update of /projects/cvsroot/pvfs2-1/src/io/trove/trove-dbpf
In directory parlweb:/tmp/cvs-serv6676/src/io/trove/trove-dbpf
Modified Files:
dbpf-keyval-db-cache.c
Log Message:
- started mapping pvfs2 error codes to kernel error codes
- fix the case of assertion failing when a new file is attempted to be
created when there is no space left on the server (and make sure it's
properly reported back to the client)
- cleanups
Index: dbpf-keyval-db-cache.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/io/trove/trove-dbpf/dbpf-keyval-db-cache.c,v
diff -p -u -r1.28 -r1.29
--- dbpf-keyval-db-cache.c 2 Feb 2004 22:50:25 -0000 1.28
+++ dbpf-keyval-db-cache.c 11 Feb 2004 23:14:47 -0000 1.29
@@ -269,7 +269,13 @@ int dbpf_keyval_dbcache_try_get(TROVE_co
DB_BTREE,
DB_CREATE|DB_EXCL,
0644);
- assert (ret == 0);
+
+ /* this can easily happen if the server is out of disk space */
+ if (ret)
+ {
+ error = -dbpf_db_error_to_trove_error(ret);
+ goto return_error;
+ }
}
else if (ret == ENOENT)
{
More information about the PVFS2-CVS
mailing list