哈哈,cloudstack代码涉嫌故意卖萌

cloudstack 4.2.1
AgentManagerImpl.java: 469

assert noDbTxn() : "I know, I know.  Why are we so strict as to not allow txn across an agent call?  ...  Why are we so cruel ... Why are we such a dictator .... Too bad... Sorry...but NO AGENT COMMANDS WRAPPED WITHIN DB TRANSACTIONS!";
Command[] cmds = commands.toCommands();
assert cmds.length > 0 : "Ask yourself this about a hundred times.  Why am I  sending zero length commands?";

虽然这样的报错不太恰当,不够简洁明确,但是我喜欢这样的态度和风格。
coding不应该是枯燥无趣的工作。

发表评论?

0 条评论。

发表评论


请输入正确的验证码