维基说;
可重复读取:
在此隔离级别中,基于锁的并发控制DBMS实现保持读取和写入锁定(在选定数据上获取),直到事务结束.但是,不管理范围锁定,因此可能会发生幻像读取.在这种隔离级别可以进行写入偏移,这种现象是两个不同的写入者(他们之前已经读过他们正在更新的列)允许两个写入表中的同一列,从而导致列具有的数据是这两笔交易的混合.
我很好奇为什么write skew会发生Repeatable reads?它说它将保持读取和写入锁定,直到事务结束并write skew发生时previously read the columns they are updating,因此如何锁定读取锁定时写入锁定?
When I compile this code, the compiler tells me that I cannot take the address of str(s).
func main() {
s := "hello, world"
type str string
sp := &str(s)
}
Run Code Online (Sandbox Code Playgroud)
So my question is whether a type conversion may look for a new address to locate the current new s, or something else that I haven't thought of?