Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62548

ValidateBatch fails on delete op

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • None
    • storage-engine
    • Untriaged
    • 0
    • Unknown

    Description

      For delete op, there is no meta or value, but ValidateBatch would still validate batch has meta and value.

      @@ -626,12 +635,14 @@ Status MagmaKVStore::validateBatch(CRecord* recs, size_t nrecs) {
      if (!IsValidKey(&recs[i].Key))

      { return Status(Status::Code::Invalid, "Invalid Batch Key"); }

      if (!IsValidVal(&recs[i].Val))

      { return Status(Status::Code::Invalid, "Invalid Batch Val"); }

      if (!IsValidMeta(&recs[i].Meta))

      { return Status(Status::Code::Invalid, "Invalid Batch Meta"); }

      }

      Attachments

        For Gerrit Dashboard: MB-62548
        # Subject Branch Project Status CR V

        Activity

          People

            saptarshi.sen Saptarshi Sen
            jliang John Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty