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

Convert server <-> engine API to C++

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Critical
    • 6.5.0
    • 6.5.0
    • couchbase-bucket, memcached
    • None

    Description

      The current APIs between the server (memcached) and engines (ep, default engine) is a C-style interface consisting of structs containing function pointers. This was because memcached (& default_engine) used to be implemented in C, hence even though ep-engine was C++ the interface between them has to be C.

      This is no longer the case however; all of the server & engines compile as C++ - and in fact we already use C++ types in parts of the API (see for example get() in {engine.h}}).

      We should convert the APIs between the server & engine to C++ - pure virtual classes. This makes it much easier to trace calls; and improves the type-safely of them.

      Attachments

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

        Activity

          People

            drigby Dave Rigby (Inactive)
            drigby Dave Rigby (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty