Преглед изворни кода

db_flatstore: use PROC_MIN to compute process uid

- PROC_TCP_MAIN is no longer the lowerest and can produce overlappings
Daniel-Constantin Mierla пре 14 година
родитељ
комит
4727a534f7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      modules/db_flatstore/km_flatstore_mod.c

+ 1 - 1
modules/db_flatstore/km_flatstore_mod.c

@@ -136,7 +136,7 @@ int km_child_init(int rank)
 	if (rank <= 0) {
 		km_flat_pid = - rank;
 	} else {
-		km_flat_pid = rank - PROC_TCP_MAIN;
+		km_flat_pid = rank - PROC_MIN;
 	}
 	return 0;
 }