Fix: bt2::CommonStreamClass: use correct memory error status
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 12 May 2022 17:23:48 +0000 (13:23 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I325d41eeaa4f81df5ad6177fc935bffe49416b34
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8025
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10796
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2/trace-ir.hpp

index 8677fde2852c5df5a5632dcee51e962e07ca3e70..87f51b9a2b483d052b983d9f9f08ad39a26af784 100644 (file)
@@ -1718,7 +1718,7 @@ public:
         const auto status =
             bt_stream_class_set_packet_context_field_class(this->libObjPtr(), fc.libObjPtr());
 
-        if (status == BT_EVENT_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) {
+        if (status == BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) {
             throw LibMemoryError {};
         }
     }
@@ -1752,7 +1752,7 @@ public:
         const auto status =
             bt_stream_class_set_event_common_context_field_class(this->libObjPtr(), fc.libObjPtr());
 
-        if (status == BT_EVENT_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) {
+        if (status == BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) {
             throw LibMemoryError {};
         }
     }
This page took 0.025706 seconds and 4 git commands to generate.