You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "fisven (via GitHub)" <gi...@apache.org> on 2023/10/16 03:45:11 UTC

[I] 自定义bvar类型, 出现数据丢失的情况 (brpc)

fisven opened a new issue, #2414:
URL: https://github.com/apache/brpc/issues/2414

   **Describe the bug (描述bug)**
   自定义数据类型type A,
   A 中包含 unordered_map<string, pair<bool, pair<int ,int >>> a;
   使用:
   Adder <A> add;
   Window<Adder <A>> win;
   然后, win初始化为60s:
   
   add << t;  // 存数.
   win.get_value();  // 取window中的数.
   
   取出来的是:
   [“string”, true, 0, 0]
   后面两个int 会归零, 实际上不应该归零.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


Re: [I] 自定义bvar类型, 出现数据丢失的情况 (brpc)

Posted by "wwbmmm (via GitHub)" <gi...@apache.org>.
wwbmmm commented on issue #2414:
URL: https://github.com/apache/brpc/issues/2414#issuecomment-1767558802

   add.get_value()能取到数据吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


Re: [I] 自定义bvar类型, 出现数据丢失的情况 (brpc)

Posted by "fisven (via GitHub)" <gi...@apache.org>.
fisven commented on issue #2414:
URL: https://github.com/apache/brpc/issues/2414#issuecomment-1763688266

   可能描述不够清楚:
   大概总结就是: win 存进去数据, 然后取出来之后 数据少了一部分.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org