diff options
author | Niharika Sharma <niharika.sharma@amdocs.com> | 2021-03-25 17:07:04 -0400 |
---|---|---|
committer | Niharika Sharma <niharika.sharma@amdocs.com> | 2021-03-25 21:32:01 +0000 |
commit | d010436eadddc878ddfc50c8f8908817f5231804 (patch) | |
tree | 7db98819fab15826b514cb819a84b599f56f405e /src/main/scripts | |
parent | eab4c7ce3ebe4d202f94b22836c9e1b9af023d84 (diff) |
Fixed Concurrent Updates overriding the AAI object such as Pserver
Issue-ID: AAI-3308
Signed-off-by: Niharika Sharma <niharika.sharma@amdocs.com>
Change-Id: I5f5b89d6304f382c186ae03f3f70ba60097ff6e3
Diffstat (limited to 'src/main/scripts')
-rw-r--r-- | src/main/scripts/schemaMod.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/scripts/schemaMod.sh b/src/main/scripts/schemaMod.sh index c7b8ce9..8e6c0bb 100644 --- a/src/main/scripts/schemaMod.sh +++ b/src/main/scripts/schemaMod.sh @@ -13,19 +13,20 @@ # just to change existing instances of the schema since schemaGenerator does not # update things - it just does the initial creation. # -# To use this script, there are 4 required parameters, and one optional: +# To use this script, there are 5 required parameters, and one optional: # propertyName -- the name of the property that you need to change either the index or dataType on # targetDataType -- whether it's changing or not, you need to give it: String, Integer, Boolean or Long # targetIndexInfo -- whether it's changing or not, you need to give it: index, noIndex or uniqueIndex # preserveDataFlag -- true or false. The only reason I can think of why you'd ever want to # set this to false would be maybe if you were changing to an incompatible dataType so didn't # want it to try to use the old data (and fail). But 99% of the time this will just be 'true'. +# consistencyLock -- true or false. Whether to enable consistency lock on the property or not # # commitBlockSize -- OPTIONAL -- how many updates to commit at once. # Default will be used if no value is passed. # -# Ie. schemaMod flavor-id String index true -# or, schemaMod flavor-id String noIndex true 50000 +# Ie. schemaMod flavor-id String index true true +# or, schemaMod flavor-id String noIndex true true 50000 # COMMON_ENV_PATH=$( cd "$(dirname "$0")" ; pwd -P ) @@ -33,9 +34,9 @@ COMMON_ENV_PATH=$( cd "$(dirname "$0")" ; pwd -P ) start_date; check_user; -if [ "$#" -ne 4 ] && [ "$#" -ne 5 ]; then +if [ "$#" -ne 5 ] && [ "$#" -ne 6 ]; then echo "Illegal number of parameters" - echo "usage: $0 propertyName targetDataType targetIndexInfo preserveDataFlag [blockSize]" + echo "usage: $0 propertyName targetDataType targetIndexInfo preserveDataFlag consistencyLock [blockSize]" exit 1 fi |