Explorar el Código

tm: make t_append_branches return the number of added branches

Federico Cabiddu hace 10 años
padre
commit
9581d7c03b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      modules/tm/t_append_branches.c

+ 2 - 2
modules/tm/t_append_branches.c

@@ -153,7 +153,7 @@ int t_append_branches(void) {
 
 	if (added_branches==0) {
 		if(lowest_ret!=E_CFG)
-			LOG(L_ERR, "ERROR: t_append_branch: failure to add branches\n");
+			LOG(L_ERR, "ERROR: t_append_branch: failure to add branches (%d)\n", lowest_ret);
 		ser_error=lowest_ret;
 		replies_locked = 0;
 		UNLOCK_REPLIES(t);
@@ -198,7 +198,7 @@ int t_append_branches(void) {
 	set_kr(REQ_FWDED);
 	replies_locked = 0;
 	UNLOCK_REPLIES(t);
-	return 1;
+	return success_branch;
 
 canceled:
 	DBG("t_append_branches: cannot append branches to a canceled transaction\n");