Changeset: 9afb65c2f771 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9afb65c2f771
Modified Files:
sql/server/sql_mvc.c
Branch: Nov2019
Log Message:
Use bool.
diffs (26 lines):
diff --git a/sql/server/sql_mvc.c b/sql/server/sql_mvc.c
--- a/sql/server/sql_mvc.c
+++ b/sql/server/sql_mvc.c
@@ -560,18 +560,18 @@ build up the hash (not copied in the tra
}
* */
/* validation phase */
- int valide = sql_trans_validate(tr);
+ bool valid = sql_trans_validate(tr);
- if (valide) {
+ if (valid) {
store_unlock();
if (sql_save_snapshots(tr) != SQL_OK) {
GDKfatal("%s transaction commit failed (perhaps your
disk is full?) exiting (kernel error: %s)", operation, GDKerrbuf);
}
store_lock();
}
- valide = sql_trans_validate(tr);
- if (valide) {
+ valid = sql_trans_validate(tr);
+ if (valid) {
if ((ok = sql_trans_commit(tr)) != SQL_OK) {
GDKfatal("%s transaction commit failed (perhaps your
disk is full?) exiting (kernel error: %s)", operation, GDKerrbuf);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list