Skip to content

Commit

Permalink
Merge pull request #15 from flightaware/nxt-167
Browse files Browse the repository at this point in the history
Patch to allow kafkatcl 1.5 code to work in kafkatcl 2.x.
  • Loading branch information
resuna authored May 19, 2017
2 parents ac07bf2 + 5fcef3f commit e1967c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dnl to configure the system for the local environment.
# so you can encode the package version directly into the source files.
#-----------------------------------------------------------------------

AC_INIT([kafka], [2.0.0])
AC_INIT([kafka], [2.0.1])

#-----
# Version with patch stripped
Expand Down
11 changes: 10 additions & 1 deletion generic/kafkatcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,9 @@ kafkatcl_topicConsumerObjectObjCmd(ClientData cData, Tcl_Interp *interp, int obj
"start_queue",
"stop",
"delete",
"consume_start",
"consume_start_queue",
"consume_stop",
NULL
};

Expand All @@ -2370,7 +2373,10 @@ kafkatcl_topicConsumerObjectObjCmd(ClientData cData, Tcl_Interp *interp, int obj
OPT_CONSUME_START,
OPT_CONSUME_START_QUEUE,
OPT_CONSUME_STOP,
OPT_DELETE
OPT_DELETE,
OPT_LEGACY_CONSUME_START,
OPT_LEGACY_CONSUME_START_QUEUE,
OPT_LEGACY_CONSUME_STOP
};

/* basic validation of command line arguments */
Expand Down Expand Up @@ -2497,6 +2503,7 @@ kafkatcl_topicConsumerObjectObjCmd(ClientData cData, Tcl_Interp *interp, int obj
return kafkatcl_handle_topic_info (interp, kt, objc, objv);
}

case OPT_LEGACY_CONSUME_START:
case OPT_CONSUME_START: {
int64_t offset;
int partition;
Expand Down Expand Up @@ -2529,6 +2536,7 @@ kafkatcl_topicConsumerObjectObjCmd(ClientData cData, Tcl_Interp *interp, int obj
break;
}

case OPT_LEGACY_CONSUME_START_QUEUE:
case OPT_CONSUME_START_QUEUE: {
int64_t offset;
int partition;
Expand Down Expand Up @@ -2565,6 +2573,7 @@ kafkatcl_topicConsumerObjectObjCmd(ClientData cData, Tcl_Interp *interp, int obj
break;
}

case OPT_LEGACY_CONSUME_STOP:
case OPT_CONSUME_STOP: {
int partition;

Expand Down

0 comments on commit e1967c7

Please sign in to comment.