Fix: validate number of subbuffers after tweaking properties
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index cc26e6dae004baeab4177f3589a0e837e7deba34..c74da94f4cc8ab8ebcbdcccb91fe72f37a125615 100644 (file)
@@ -1333,16 +1333,6 @@ int cmd_enable_channel(struct ltt_session *session,
                attr->attr.switch_timer_interval = 0;
        }
 
-       /*
-        * The ringbuffer (both in user space and kernel) behave badly in overwrite
-        * mode and with less than 2 subbuf so block it right away and send back an
-        * invalid attribute error.
-        */
-       if (attr->attr.overwrite && attr->attr.num_subbuf < 2) {
-               ret = LTTNG_ERR_INVALID;
-               goto error;
-       }
-
        switch (domain->type) {
        case LTTNG_DOMAIN_KERNEL:
        {
This page took 0.025032 seconds and 5 git commands to generate.