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

remove duplicated code between CreateRequest{,2}

    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
          Raul Gutierrez Segales

          Issue Links

            Activity

              People

              • Assignee:
                rgs Raul Gutierrez Segales
                Reporter:
                rgs Raul Gutierrez Segales
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: