SOLR-10920: _default configset warning should not appear when using -n with create_collection

This commit is contained in:
Ishan Chattopadhyaya 2017-07-30 03:20:14 +05:30
parent 924b3fd472
commit 9601ea9d4b
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ if [[ "$SCRIPT_CMD" == "create" || "$SCRIPT_CMD" == "create_core" || "$SCRIPT_CM
exit 1 exit 1
fi fi
if [ "$CREATE_CONFDIR" == "_default" ]; then if [[ "$CREATE_CONFDIR" == "_default" ]] && ([[ "$CREATE_CONFNAME" == "" ]] || [[ "$CREATE_CONFNAME" == "_default" ]]); then
echo "WARNING: Using _default configset. Data driven schema functionality is enabled by default, which is" echo "WARNING: Using _default configset. Data driven schema functionality is enabled by default, which is"
echo " NOT RECOMMENDED for production use." echo " NOT RECOMMENDED for production use."
echo echo