minor changes
This commit is contained in:
parent
f6d3ba6265
commit
0d63e9c2fc
|
@ -20,7 +20,13 @@
|
||||||
int32_t taosCreateShm(SShm* pShm, int32_t key, int32_t shmsize) {
|
int32_t taosCreateShm(SShm* pShm, int32_t key, int32_t shmsize) {
|
||||||
pShm->id = -1;
|
pShm->id = -1;
|
||||||
|
|
||||||
int32_t shmid = shmget(0X95270000 + key, shmsize, IPC_CREAT | 0600);
|
// key_t shkey = IPC_PRIVATE;
|
||||||
|
// int32_t __shmflag = IPC_CREAT | IPC_EXCL | 0600;
|
||||||
|
|
||||||
|
key_t __shkey = 0X95270000 + key;
|
||||||
|
int32_t __shmflag = IPC_CREAT | 0600;
|
||||||
|
|
||||||
|
int32_t shmid = shmget(__shkey, shmsize, __shmflag);
|
||||||
if (shmid < 0) {
|
if (shmid < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,8 +55,8 @@
|
||||||
|
|
||||||
|
|
||||||
# --- for multi process mode
|
# --- for multi process mode
|
||||||
./test.sh -f tsim/user/basic1.sim -m
|
# ./test.sh -f tsim/user/basic1.sim -m
|
||||||
./test.sh -f tsim/stable/vnode3.sim -m
|
# ./test.sh -f tsim/stable/vnode3.sim -m
|
||||||
./test.sh -f tsim/tmq/basic.sim -m
|
# ./test.sh -f tsim/tmq/basic.sim -m
|
||||||
|
|
||||||
#======================b1-end===============
|
#======================b1-end===============
|
||||||
|
|
Loading…
Reference in New Issue