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

Creating a COMPLETION_STRING_STAT would set acl_result completion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

          case COMPLETION_STRING_STAT:
              c->c.string_stat_result = (string_stat_completion_t)dc;
          case COMPLETION_ACLLIST:
              c->c.acl_result = (acl_completion_t)dc;
              break;

      `c->c` is a union so setting c.acl_result would override c.string_stat_result. However, since they're all function pointers pointing to the same function, this won't cause any issue as c.string_stat_result is still correct. This might cause issue if we change the type of these completions in the future.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adamyi Adam Yi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m