Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14175

Incorrect documentation about CASSANDRA_INCLUDE priority

    XMLWordPrintableJSON

Details

    • Low

    Description

      In bin/cassandra the comments say:

      The lowest priority search path is the same directory as the startup script...

      However the "same directory" currently has the highest priority:

          # Locations (in order) to use when searching for an include file.
          for include in "`dirname "$0"`/cassandra.in.sh" \
                         "$HOME/.cassandra.in.sh" \
                         /usr/share/cassandra/cassandra.in.sh \
                         /usr/local/share/cassandra/cassandra.in.sh \
                         /opt/cassandra/cassandra.in.sh; do
              if [ -r "$include" ]; then
                  . "$include"
                  break
              fi
          done
      

      It looks like around the release of v 2.0.0 the order was changed but the comments stayed the same.

      Attachments

        Activity

          People

            jasobrown Jason Brown
            moneytoo Marcel Dopita
            Jason Brown
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: