Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-670

options { initial: 1000 } is rejected with 'bad initial passed'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.0.1
    • None
    • None
    • None
    • 1

    Description

      from connection_opps.cpp

      if (!enc.parseOption<&lcb_cmdcounter_initial>(info[4])) {key: my-counter 1

      {"initial":1000,"timeout":5000}

      (err, res) =>

      {         console.log("res: " + JSON.stringify(res));       }

      Error: bad initial passed

      In discussion with Brett Lawson, he pointed out that the same parseOption is used for Cas and options.initial.  And that I should rename the existing parseOption( .. uint64)   to parseCasOption() and use that on Cas.  And create a new parseOption(.. uint64) for other cases (like initial.options).  I tried that and it works.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            michael.reiche Michael Reiche
            michael.reiche Michael Reiche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty