data pending returns true when rotate is pending
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 26 Sep 2017 16:52:59 +0000 (12:52 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Tue, 26 Sep 2017 16:52:59 +0000 (12:52 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/bin/lttng-sessiond/cmd.c

index cb8725b59805bada5abdb0362cd6c218f5a067c8..d6182633d6959d9c6235246d8e15eb69845154d7 100644 (file)
@@ -3183,6 +3183,14 @@ int cmd_data_pending(struct ltt_session *session)
                }
        }
 
+       /*
+        * A rotation is still pending, we have to wait.
+        */
+       if (session->rotate_pending) {
+               ret = 1;
+               goto error;
+       }
+
        if (ksess && ksess->consumer) {
                ret = consumer_is_data_pending(ksess->id, ksess->consumer);
                if (ret == 1) {
This page took 0.027721 seconds and 5 git commands to generate.