浏览代码

db_flatstore: skip child init for proc init rank

Daniel-Constantin Mierla 14 年之前
父节点
当前提交
ef2906d503
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      modules/db_flatstore/flatstore_mod.c

+ 3 - 0
modules/db_flatstore/flatstore_mod.c

@@ -192,6 +192,9 @@ static int child_init(int rank)
 	char* tmp;
 	unsigned int v;
 
+	if(rank==PROC_INIT)
+		return 0;
+
 	km_child_init(rank);
 
 	if (rank <= 0) {