$ immcfg > immcfg -c SaLogStreamConfig safLgStrCfg=test3 -a saLogStreamPathName=. -a saLogRecordDestination=test -a saLogStreamFileName=test3 > immcfg -c SaLogStreamConfig safLgStrCfg=test4 -a saLogStreamPathName=. -a saLogRecordDestination=test -a saLogStreamFileName=test3 > $ $ immlist safLgStrCfg=test3 Name Type Value(s) ======================================================================== safLgStrCfg SA_STRING_T safLgStrCfg=test3 saLogStreamPathName SA_STRING_T . saLogStreamFileName SA_STRING_T test3 $ immlist safLgStrCfg=test4 Name Type Value(s) ======================================================================== safLgStrCfg SA_STRING_T safLgStrCfg=test4 saLogStreamPathName SA_STRING_T . saLogStreamFileName SA_STRING_T test3
LOG server should not allow creating streams which have the same target log file, or that target exists.
In case 2 streams are created in the same CCB, ccb_completed callback is called 2 times to verify the parameters then ccb_apply_create callbacks is called 2 time to create 2 new streams. Log service verifies stream file name by checking if the file name is duplicated with any exist streams.
But in this case the verification pass:
1/ No exist streams has file name "test3"
2/ log service does not know if the stream "safLgStrCfg=test3" or "safLgStrCfg=test4" will created successfully or not. So why should reject if they are the same file name?
Last edit: Canh Truong 2018-01-03
commit 44b9dd553f293ef4aefa723e70a6137f27fa50ce (HEAD, origin/develop, develop)
Author: Canh Van Truong canh.v.truong@dektech.com.au
Date: Thu Jan 11 12:33:15 2018 +0700