Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2187

remove duplicated code between CreateRequest{,2}

    XMLWordPrintableJSON

    Details

      Description

      To avoid cargo culting and reducing duplicated code we can merge most of CreateRequest & CreateRequest2 given that only the Response object is actually different.

      This will improve readability of the code plus make it less confusing for people adding new opcodes in the future (i.e.: copying a request definition vs reusing what's already there, etc.).

        Attachments

        1. ZOOKEEPER-2187.patch
          11 kB
          Raúl Gutiérrez Segalés

          Issue Links

            Activity

              People

              • Assignee:
                rgs Raúl Gutiérrez Segalés
                Reporter:
                rgs Raúl Gutiérrez Segalés
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: